package com.app.implementation.service;


import com.app.model.Personnel;
import com.app.interfaces.interfaceDAO;
import com.app.interfaces.interfaceService;
import java.util.List;

/**
 *
 * @author Krachleur
 */
public class PersonnelServiceImpl implements interfaceService{
private interfaceDAO personnelDao;
    public void save(Object inst) {
        Personnel pers = (Personnel)inst;
        personnelDao.save(pers);
    }

    public void modify(Object inst) {
        Personnel pers = (Personnel)inst;
        personnelDao.modify(pers);
    }

    public void delete(Object inst) {
        Personnel pers = (Personnel)inst;
        personnelDao.delete(pers);
    }

    public List findAll() {
        return personnelDao.findAll();
    }

    public interfaceDAO getPersonnelDao() {
        return personnelDao;
    }

    public void setPersonnelDao(interfaceDAO personnelDao) {
        this.personnelDao = personnelDao;
    }



}

